# import pymysql
#
# conn =pymysql.connect(host = "211.103.136.244",
#                       port=7068,
#                       database ="huike" ,
#                       user="student",
#                       password="KDTX_student_202304",
#                       charset="utf8")
# cursor = conn.cursor()
# cursor.execute("select version();")
# print(cursor.fetchall())
#
# cursor.close()
# conn.close()

import pymysql
conn = pymysql.connect(host = "211.103.136.244",
                       port= 7068,
                       database="huike",
                       user = "student",
                       password ="KDTX_student_202304",
                       charset="utf8")
cursor = conn.cursor()
cursor.execute("select * from tb_contract")
print(cursor.fetchone())

cursor.close()
conn.close()
